package net.jiupinshi.util;

/**
 * @Despription: 编码工具类
 * @Author: penghui.guo
 * @Date: 2018/10/6 17:21
 */
public class CodeUtil {

    private final static String EXPENSE_APPLY_PRE = "LM";

    public static String createExpenseApplyCode() {
        StringBuilder builder = new StringBuilder(EXPENSE_APPLY_PRE);
        builder.append(DateUtil.currentDateToStr(DateUtil.YMD));
        int s = (int)(Math.random()*900000+100000);
        builder.append(s);
        return builder.toString();
    }

    public static void main(String[] args) {
        System.out.println(createExpenseApplyCode());
    }
}
